package map;

import java.util.HashMap;
import java.util.Map;

public class MapDemo {
    public static void main(String[] args) {
        Map<String, Integer> map = new HashMap<>();
        map.put("heimi", 12);
        map.put("卷卷", 25);
        map.put("hsjk", 6);
        map.put("czd", 3);
        map.put("ssx", 33);
        map.put("sxsx", 5);
        System.out.println(map);
        int value1 = map.put("heimi", 2);
        System.out.println(map);
        System.out.println(value1);
        Integer value = map.put("heimi", 1);
        System.out.println(map);
        System.out.println(value1);
        value=map.get("卷卷");
        System.out.println(value);
        int size=map.size();
        System.out.println(size);
        value=map.remove("卷卷");
        System.out.println(map);
        boolean ck=map.containsKey("heimi");
        System.out.println(ck);
        boolean cv=map.containsValue(5);
        System.out.println(cv);

    }
}